package mn.slide.laborberlin.model;

import com.j256.ormlite.dao.ForeignCollection;
import com.j256.ormlite.field.DatabaseField;
import com.j256.ormlite.field.ForeignCollectionField;
import com.j256.ormlite.table.DatabaseTable;

@DatabaseTable(tableName = "ZKAPITEL")
public class Kapitel {
	@DatabaseField(canBeNull = true, generatedId = true, columnName = "Z_PK")
	private int id;
	@DatabaseField(canBeNull = true, columnName = "Z_ENT")
	private int ent;
	@DatabaseField(canBeNull = true, columnName = "Z_OPT")
	private int opt;
	@DatabaseField(canBeNull = true, columnName = "ZLAYOUTTYP")
	private int layoutType;
	@DatabaseField(canBeNull = true, columnName = "ZKAPITELID")
	private int kapitelId;
	@DatabaseField(columnName = "ZVALUE")
	private String value;
	@DatabaseField(columnName = "ZANHANG")
	private String anhang;

	@ForeignCollectionField
	private ForeignCollection<Eintrag> eintragSet;

	public int getId() {
		return this.id;
	}

	public int getEnt() {
		return this.ent;
	}

	public int getOpt() {
		return this.opt;
	}

	public void setId(int id) {
		this.id = id;
	}

	public void setEnt(int ent) {
		this.ent = ent;
	}

	public void setOpt(int opt) {
		this.opt = opt;
	}

	public int getLayoutType() {
		return this.layoutType;
	}

	public int getKapitelId() {
		return this.kapitelId;
	}

	public String getValue() {
		return this.value;
	}

	public String getAnhang() {
		return this.anhang;
	}

	public void setLayoutType(int layoutType) {
		this.layoutType = layoutType;
	}

	public void setKapitelId(int kapitelId) {
		this.kapitelId = kapitelId;
	}

	public void setValue(String value) {
		this.value = value;
	}

	public void setAnhang(String anhang) {
		this.anhang = anhang;
	}

	public ForeignCollection<Eintrag> getEintragSet() {
		return this.eintragSet;

	}
}
